package com.atguigu.study.test;

public class StackDemo {
    public static void main(String[] args) {
        System.out.println("main 开始");
        StackDemo test = new StackDemo();
        test.method2();
        System.out.println("main 结束");
    }

    private void method2() {
        System.out.println("method2 开始");
        this.method3();
        System.out.println("method2  结束");
    }

    private void method3() {
        System.out.println("method3  开始");
        this.method4();
        System.out.println("method3  结束");
    }

    private void method4() {
        System.out.println("method4 开始");
        System.out.println();
        System.out.println("method4 结束");
    }
}
